#include<stdio.h>

int addtop(int top)
{
    printf("enter addtop\n");
    int sum = 0;
    for(int i = 0; i < top; i++)
    {
        sum += i;
    }
    printf("quit addtop\n");
    return sum;
}


int main()
{
    int top = 100;
    int result = addtop(top);
    printf("result:%d\n", result);
    return 0;
}
